<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Markmap</title>
<style>
* {
  margin: 0;
  padding: 0;
}
#mindmap {
  display: block;
  width: 100vw;
  height: 100vh;
  font-weight: 400 16px/20px sans-serif;
}
</style>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/markmap-toolbar@0.14.3/dist/style.min.css">
</head>
<body>
<svg id="mindmap"></svg>
<script src="https://cdn.jsdelivr.net/npm/d3@6.7.0"></script><script src="https://cdn.jsdelivr.net/npm/markmap-view@0.14.3"></script><script src="https://cdn.jsdelivr.net/npm/markmap-toolbar@0.14.3/dist/index.umd.min.js"></script><script>(r => {
          setTimeout(r);
        })(() => {
  const {
    markmap,
    mm
  } = window;
  const toolbar = new markmap.Toolbar();
  toolbar.attach(mm);
  const el = toolbar.render();
  el.setAttribute('style', 'position:absolute;bottom:20px;right:20px');
  document.body.append(el);
})</script><script>((getMarkmap, getOptions, root, jsonOptions) => {
        const markmap = getMarkmap();
        window.mm = markmap.Markmap.create('svg#mindmap', (getOptions || markmap.deriveOptions)(jsonOptions), root);
      })(() => window.markmap,null,{"type":"heading","depth":0,"payload":{"lines":[0,1]},"content":"8.二进制包搭建Kubernetes","children":[{"type":"heading","depth":1,"payload":{"lines":[1,2]},"content":"8.1.章节内容概述"},{"type":"heading","depth":1,"payload":{"lines":[2,3]},"content":"8.2.章节内容大纲"},{"type":"heading","depth":1,"payload":{"lines":[3,4]},"content":"8.3.环境配置清单"},{"type":"heading","depth":1,"payload":{"lines":[4,5]},"content":"8.4.服务器规划和IP地址规划","children":[{"type":"heading","depth":2,"payload":{"lines":[5,6]},"content":"8.4.1服务器规划"},{"type":"heading","depth":2,"payload":{"lines":[6,7]},"content":"8.4.2.IP地址规划"}]},{"type":"heading","depth":1,"payload":{"lines":[7,8]},"content":"8.5.安装前准备工作","children":[{"type":"heading","depth":2,"payload":{"lines":[8,9]},"content":"8.5.1操作系统初始设置"},{"type":"heading","depth":2,"payload":{"lines":[9,10]},"content":"8.5.2下载所有用到的软件包"}]},{"type":"heading","depth":1,"payload":{"lines":[10,11]},"content":"8.6.安装cfssl证书生成工具"},{"type":"heading","depth":1,"payload":{"lines":[11,12]},"content":"8.7.搭建etcd集群","children":[{"type":"heading","depth":2,"payload":{"lines":[12,13]},"content":"8.7.1生成CA证书和https证书"},{"type":"heading","depth":2,"payload":{"lines":[13,14]},"content":"8.7.2.部署etcd集群"},{"type":"heading","depth":2,"payload":{"lines":[14,15]},"content":"8.7.4.拷贝etcd所需证书"},{"type":"heading","depth":2,"payload":{"lines":[15,16]},"content":"8.7.5.让systemd管理etcd"},{"type":"heading","depth":2,"payload":{"lines":[16,17]},"content":"8.7.6.拷贝etcd安装文件到Worker Node"},{"type":"heading","depth":2,"payload":{"lines":[17,18]},"content":"8.7.7.启动三个etcd并设置开机自启"}]},{"type":"heading","depth":1,"payload":{"lines":[18,19]},"content":"8.8.安装配置Docker","children":[{"type":"heading","depth":2,"payload":{"lines":[19,20]},"content":"8.8.1在Master1上安装docker"},{"type":"heading","depth":2,"payload":{"lines":[20,21]},"content":"8.8.2在所有Worker Node上安装docker"},{"type":"heading","depth":2,"payload":{"lines":[21,22]},"content":"8.8.3启动三台机器上的docker"}]},{"type":"heading","depth":1,"payload":{"lines":[22,23]},"content":"8.9.搭建kube-apiserver","children":[{"type":"heading","depth":2,"payload":{"lines":[23,24]},"content":"8.9.1.生成CA证书和Https证书"},{"type":"heading","depth":2,"payload":{"lines":[24,25]},"content":"8.9.2.在Master Node1上部署kube-apiserver"},{"type":"heading","depth":2,"payload":{"lines":[25,26]},"content":"8.9.3.拷贝所需证书"},{"type":"heading","depth":2,"payload":{"lines":[26,27]},"content":"8.9.4.启用TLS bootstrapping"},{"type":"heading","depth":2,"payload":{"lines":[27,28]},"content":"8.9.5.让systemd管理apiserver"},{"type":"heading","depth":2,"payload":{"lines":[28,29]},"content":"8.9.6.启动kube-apiserver"}]},{"type":"heading","depth":1,"payload":{"lines":[29,30]},"content":"8.10.在Master Node1上部署kube-controller-manager","children":[{"type":"heading","depth":2,"payload":{"lines":[30,31]},"content":"8.10.1.切换目录并拷贝kube-controller-manager相关文件到/opt/kubernetes/bin"},{"type":"heading","depth":2,"payload":{"lines":[31,32]},"content":"8.10.2.生成证书"},{"type":"heading","depth":2,"payload":{"lines":[32,33]},"content":"8.10.2.创建kube-controller-manager配置文件"},{"type":"heading","depth":2,"payload":{"lines":[33,34]},"content":"8.10.3.生成配置文件"},{"type":"heading","depth":2,"payload":{"lines":[34,35]},"content":"8.10.4.让systemd管理controller-manager"},{"type":"heading","depth":2,"payload":{"lines":[35,36]},"content":"8.10.5.启动kube-controller-manager"}]},{"type":"heading","depth":1,"payload":{"lines":[36,37]},"content":"8.11.部署kube-scheduler","children":[{"type":"heading","depth":2,"payload":{"lines":[37,38]},"content":"8.10.1 切换目录并拷贝kube-dcheduler相关文件到/opt/kubernetes/bin"},{"type":"heading","depth":2,"payload":{"lines":[38,39]},"content":"8.11.2.生成证书"},{"type":"heading","depth":2,"payload":{"lines":[39,40]},"content":"8.11.3.创建kube-scheduler.conf配置文件"},{"type":"heading","depth":2,"payload":{"lines":[40,41]},"content":"8.11.4.生成kube-scheduler.kubeconfig文件"},{"type":"heading","depth":2,"payload":{"lines":[41,42]},"content":"8.11.5.让systemd管理kube-scheduler"},{"type":"heading","depth":2,"payload":{"lines":[42,43]},"content":"8.11.6.启动并设置开机启动"}]},{"type":"heading","depth":1,"payload":{"lines":[43,44]},"content":"8.12.使用kubectl查看集群状态","children":[{"type":"heading","depth":2,"payload":{"lines":[44,45]},"content":"8.12.1.生成所需证书"},{"type":"heading","depth":2,"payload":{"lines":[45,46]},"content":"8.12.2.在.kube文件夹中生成config文件"},{"type":"heading","depth":2,"payload":{"lines":[46,47]},"content":"8.12.3.通过kubectl工具查看集群组件"},{"type":"heading","depth":2,"payload":{"lines":[47,48]},"content":"8.12.4.授权kubelet-bootstrap用户允许请求证书"}]},{"type":"heading","depth":1,"payload":{"lines":[48,49]},"content":"8.13.在Master Node1上部署第一个Worker Node","children":[{"type":"heading","depth":2,"payload":{"lines":[49,50]},"content":"8.13.2.在Master Node1部署kubelet","children":[{"type":"heading","depth":3,"payload":{"lines":[50,51]},"content":"8.13.2.1.创建kubelet配置文件"},{"type":"heading","depth":3,"payload":{"lines":[51,52]},"content":"8.13.2.2.创建kubelet编排文件"},{"type":"heading","depth":3,"payload":{"lines":[52,53]},"content":"8.13.2.3.生成kubelet初次加入集群引导kubeconfig文件"},{"type":"heading","depth":3,"payload":{"lines":[53,54]},"content":"8.13.2.4.systemd管理kubelet"},{"type":"heading","depth":3,"payload":{"lines":[54,55]},"content":"8.13.3.5.启动kubelet并设置开机启动"},{"type":"heading","depth":3,"payload":{"lines":[55,56]},"content":"8.13.2.6.允许kubelet证书申请并加入集群"}]},{"type":"heading","depth":2,"payload":{"lines":[56,57]},"content":"8.13.3.部署kube-proxy","children":[{"type":"heading","depth":3,"payload":{"lines":[57,58]},"content":"8.13.3.1.创建kube-proxy配置文件"},{"type":"heading","depth":3,"payload":{"lines":[58,59]},"content":"8.13.3.2.配置参数文件"},{"type":"heading","depth":3,"payload":{"lines":[59,60]},"content":"8.13.3.3.生成kube-proxy证书文件"},{"type":"heading","depth":3,"payload":{"lines":[60,61]},"content":"8.13.3.4.生成kube-proxy.kubeconfig文件"},{"type":"heading","depth":3,"payload":{"lines":[61,62]},"content":"8.13.3.5.systemd管理kube-proxy"},{"type":"heading","depth":3,"payload":{"lines":[62,63]},"content":"8.12.3.6.启动kube-proxy并设置开机自启"}]},{"type":"heading","depth":2,"payload":{"lines":[63,64]},"content":"8.13.4.部署网络组件(Calico)"},{"type":"heading","depth":2,"payload":{"lines":[64,65]},"content":"8.13.5.授权apiserver访问kubelet"}]},{"type":"heading","depth":1,"payload":{"lines":[65,66]},"content":"8.14.增加Worker Node","children":[{"type":"heading","depth":2,"payload":{"lines":[66,67]},"content":"8.14.1.在所有Worker Node创建工作目录并拷贝二进制文件"},{"type":"heading","depth":2,"payload":{"lines":[67,68]},"content":"8.14.2拷贝Master Node1上部署好的文件到Worker Node"},{"type":"heading","depth":2,"payload":{"lines":[68,69]},"content":"8.14.3.删除所有Worker Node中kubelet证书和kubeconfig文件"},{"type":"heading","depth":2,"payload":{"lines":[69,70]},"content":"8.14.4. 修改Worker Node1和Worker Node2主机名"},{"type":"heading","depth":2,"payload":{"lines":[70,71]},"content":"8.14.5.启动Worker Node1和Worker Node2中kubelet并设置开机自启"},{"type":"heading","depth":2,"payload":{"lines":[71,72]},"content":"8.14.6.在Master1上同意新的Node kubelet证书申请"},{"type":"heading","depth":2,"payload":{"lines":[72,73]},"content":"8.14.7.在Master1上部署kubernetes-dashboard"},{"type":"heading","depth":2,"payload":{"lines":[73,74]},"content":"8.14.8.在Master1上部署CoreDNS"}]},{"type":"heading","depth":1,"payload":{"lines":[74,75]},"content":"8.15.增加Master2节点","children":[{"type":"heading","depth":2,"payload":{"lines":[75,76]},"content":"8.15.1.Kubernetes集群架构简介"},{"type":"heading","depth":2,"payload":{"lines":[76,77]},"content":"8.15.2.给Master Node2安装Docker"},{"type":"heading","depth":2,"payload":{"lines":[77,78]},"content":"8.15.5.给Master Node2节点拷贝所有需要的证书"},{"type":"heading","depth":2,"payload":{"lines":[78,79]},"content":"8.15.6.启动Master所有服务并设置开机自启"},{"type":"heading","depth":2,"payload":{"lines":[79,80]},"content":"8.15.7.在Master查看集群组件状态"},{"type":"heading","depth":2,"payload":{"lines":[80,81]},"content":"8.15.8.审批所有Worker  Node上的kubelet证书申请"}]},{"type":"heading","depth":1,"payload":{"lines":[81,82]},"content":"8.16.部署Nginx+Keepalived高可用负载均衡器","children":[{"type":"heading","depth":2,"payload":{"lines":[82,83]},"content":"8.16.1.Nginx和Keepalived简介"},{"type":"heading","depth":2,"payload":{"lines":[83,84]},"content":"8.16.2.在两台Master Node上安装软件"},{"type":"heading","depth":2,"payload":{"lines":[84,85]},"content":"8.16.3.Nginx增加Steam模块","children":[{"type":"heading","depth":3,"payload":{"lines":[85,86]},"content":"8.16.3.1.查看Nginx版本模块"},{"type":"heading","depth":3,"payload":{"lines":[86,87]},"content":"8.16.3.2.Master1和Master2安装Stream模块"}]},{"type":"heading","depth":2,"payload":{"lines":[87,88]},"content":"8.16.4.启动nginx、keepalived并设置开机自启(master1/master2)"},{"type":"heading","depth":2,"payload":{"lines":[88,89]},"content":"8.16.5.查看keepalived工作状态"},{"type":"heading","depth":2,"payload":{"lines":[89,90]},"content":"8.16.6.Nginx+keepalived高可用测试"},{"type":"heading","depth":2,"payload":{"lines":[90,91]},"content":"8.16.7.测试负载均衡器"},{"type":"heading","depth":2,"payload":{"lines":[91,92]},"content":"8.16.8.修改所有的Worker Node连接LB VIP"}]},{"type":"heading","depth":1,"payload":{"lines":[92,93]},"content":"8.17.部署常见问题","children":[{"type":"heading","depth":2,"payload":{"lines":[93,94]},"content":"8.17.1系统断电后,某个etcd节点无法启动"},{"type":"heading","depth":2,"payload":{"lines":[94,95]},"content":"8.17.2 The connection to the server localhost:8080 was refused - did you specify the right host or port?"}]},{"type":"heading","depth":1,"payload":{"lines":[95,96]},"content":"8.18.部署测试程序"}]},null)</script>
</body>
</html>
